// 静态成员使用类名访问，有static修饰的属性/方法，称为静态属性/方法，也称为类属性/方法
// 没有static修饰的属性/方法，称为普通属性/方法，专业术语上称为实例属性/实例方法
class People {

    name:string;

    static version:string = "v0.1.0";

    static showVersion():void {
        console.log("当前版本：",People.version);
    }

    setName(name:string):void {
        this.name = name;
    }

    getName():string {
        return this.name;
    }

    sayHello = ():void => {
        console.log(this.getName() , "向大家问好！-- ",People.version);
    }

}

let lbj = new People();
lbj.setName("罗佰君");
lbj.sayHello();

let wyw = new People();
wyw.setName("伍雨薇");
wyw.sayHello();

People.showVersion();